import request from '@/utils/request'

// 查询后端服务器状态信息
export function listServerStatus() {
  return request({
    url: '/lbmonitor/serverStatus/list',
    method: 'get'
  })
}

// 获取前端代理MAP
export function getFrontProxySummaryMap() {
    return request({
        url: '/lbmonitor/serverStatus/frontProxySummaryMap',
        method: 'get'
    })
}

// 获取后端服务器概要信息
export function getServerSummaryMap() {
    return request({
        url: '/lbmonitor/serverStatus/serverSummaryMap',
        method: 'get'
    })
}

// 服务器运维上线
export function serverUp(proxyId, srvId) {
    return request({
        url: '/lbmonitor/serverStatus/serverUp/'+proxyId+'/'+srvId,
        method: 'post'
    })
}

// 服务器运维下线
export function serverDown(proxyId, srvId) {
    return request({
        url: '/lbmonitor/serverStatus/serverDown/'+proxyId+'/'+srvId,
        method: 'post'
    })
}
